#CC=gcc
CC=arm-none-linux-gnueabi-gcc
AFLAGS= -c -g
LDFLAGS= -lpthread -L ./lib -lsqlite3 -I./include
#LDFLAGS= -lpthread  -lsqlite3 
OBJS=main.o data_global.o pthread_transfer.o pthread_analysis.o link_list.o

storage_mamage :$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
	
$(OBJS):%.o:%.c
	$(CC) $(AFLAGS) $< -o $@

.PHONY:clean
clean:
	rm *.o storage_mamage

